package sv.com.renacempleo.web.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;

public class CustomUser extends User implements UserDetails{
	
	private static final long serialVersionUID = 3668084416659011020L;
	private String fullName;
	private Long sgdUsuarioId;
	private String ctgOficinaId;
	
	public CustomUser(String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired,
				accountNonLocked, authorities);
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public Long getSgdUsuarioId() {
		return sgdUsuarioId;
	}

	public void setSgdUsuarioId(Long sgdUsuarioId) {
		this.sgdUsuarioId = sgdUsuarioId;
	}

	public String getCtgOficinaId() {
		return ctgOficinaId;
	}

	public void setCtgOficinaId(String ctgOficinaId) {
		this.ctgOficinaId = ctgOficinaId;
	}


}
